/*
** my_factorielle_it.c for my_factorielle_it in /home/goupil_r//afs/local/Jour_05
** 
** Made by robin goupil
** Login   <goupil_r@epitech.net>
** 
** Started on  Fri Oct  5 09:03:53 2012 robin goupil
** Last update Fri Oct  5 15:48:28 2012 robin goupil
*/

int	my_factorielle_it(int nb)
{
  int	out;

  out = 1;
  if (nb == 0)
    return (1);
  else if (nb < 0 || nb > 12)
    return (0);
  while (nb > 1)
    {
      out = out * nb;
      nb = nb - 1;
    }
  return (out);
}
